# 基于官方镜像构建, 增加了延迟队列的插件
FROM rabbitmq:management 

# 将./rabbitmq/plugins/下的rabbitmq_delayed_message_exchange-3.13.0.ez复制到容器的插件目录下
COPY ./rabbitmq/plugins/rabbitmq_delayed_message_exchange-3.13.0.ez /plugins/

# 安装插件
RUN rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange

# 启动rabbitmq
CMD ["rabbitmq-server"]

